package a.b;

final class h
{
  static c a(c paramc, int paramInt)
  {
    return new a_(paramc, paramInt, paramc.c() * paramInt);
  }
  
  static c a(c paramc, long paramLong)
  {
    return new a_(paramc, (int)(paramLong / paramc.c()), paramLong);
  }
  
  static c c(c paramc, int paramInt)
  {
    return new b_(paramc, paramInt, paramc.c() * paramInt);
  }
  
  static c c(c paramc, long paramLong)
  {
    return new b_(paramc, (int)(paramLong / paramc.c()), paramLong);
  }
  
  private static final class b_
    extends h.a_
  {
    public b_(c paramc, int paramInt, long paramLong)
    {
      super(paramInt, paramLong);
    }
    
    public void a(double paramDouble)
    {
      int i = this.d;
      super.a(paramDouble);
      if ((d.o) || ((i < this.d) && (1.0D > paramDouble)))
      {
        this.a.b();
        this.a.a();
      }
    }
  }
  
  private static class a_
    implements c
  {
    final c a;
    final int b;
    final long c;
    int d;
    double e;
    
    a_(c paramc, int paramInt, long paramLong)
    {
      this.a = paramc;
      this.b = paramInt;
      this.c = paramLong;
      this.d = 0;
      this.e = 0.0D;
    }
    
    public void a()
    {
      this.d = 0;
      this.e = (1.0D / this.b);
      this.a.a();
    }
    
    public void a(double paramDouble)
    {
      boolean bool = d.o;
      double d1 = (paramDouble - this.d * this.e) / this.e;
      if (!bool) {
        if (1.0D < d1)
        {
          d1 = 1.0D;
          if (bool) {
            break label78;
          }
          if (d.n == 0) {
            break label60;
          }
        }
      }
      if (!bool)
      {
        if (0.0D > d1) {
          d1 = 0.0D;
        }
        label60:
        if (!bool) {
          this.a.a(d1);
        }
      }
      else if (1.0D > d1)
      {
        label78:
        return;
      }
      this.d += 1;
    }
    
    public void b()
    {
      this.a.b();
      this.d = 0;
      this.e = 1.0D;
    }
    
    public long c()
    {
      return this.c;
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.b.h
 * JD-Core Version:    0.7.0.1
 */